package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品
    void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);
    //根据id修改菜品信息
    boolean updateWithFlavor(DishDto dishDto);
    //根据id批量删除
    boolean deleteByIdsWithFlavor(List<Long> ids);
}
